package com.aliyun.oss.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 返回的签名URL
 *
 * @author PING
 * @date 2024/1/10 22:53
 */
@Data
@Schema(description = "下载信息")
public class OSSUrlDTO {

    @Schema(description = "文件KEY")
    private String fileKey;

    @Schema(description = "文件URL")
    private String fileUrl;

    @Schema(description = "超时时间")
    private String expire;

    public OSSUrlDTO(String fileUrl, String expire) {
        this.fileUrl = fileUrl;
        this.expire = expire;
    }

    public OSSUrlDTO(String fileUrl, String fileKey, String expire) {
        this.fileUrl = fileUrl;
        this.fileKey = fileKey;
        this.expire = expire;
    }
}
